$OpenBSD: patch-binsrc_maildrop_Makefile_in,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
--- binsrc/maildrop/Makefile.in.orig	Thu Aug  2 02:04:10 2012
+++ binsrc/maildrop/Makefile.in	Tue Jan 29 19:31:26 2013
@@ -316,7 +316,7 @@ virt_mail_SOURCES = \
 noinst_HEADERS = sysexits.h
 BUILT_SOURCES = virt_mail_vers.c odbc_mail_vers.c
 CLEANFILES = virt_mail_vers.c odbc_mail_vers.c
-virt_mail_CFLAGS = @VIRT_AM_CFLAGS@ -DUDBC -I$(top_srcdir)/libsrc \
+virt_mail_CFLAGS = @VIRT_AM_CFLAGS@ -lpthread -DUDBC -I$(top_srcdir)/libsrc \
 	-I$(top_srcdir)/libsrc/Dk -I$(top_srcdir)/libsrc/Wi \
 	-I$(top_srcdir)/libsrc/odbcsdk/include
 virt_mail_LDADD = \
